/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package tpgen;

import java.util.ArrayList;
import java.util.Collection;
import org.semanticweb.owlapi.apibinding.OWLManager;
import org.semanticweb.owlapi.model.IRI;
import org.semanticweb.owlapi.model.OWLOntology;
import org.semanticweb.owlapi.model.OWLOntologyCreationException;
import org.semanticweb.owlapi.model.OWLOntologyManager;
import tpgen.manchester.w3org.Construct;
import tpgen.patterns.TransformationPattern;

/**
 *
 * @author shanki
 */
public class Tpgen {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) throws OWLOntologyCreationException {
        OWLOntologyManager manager  = OWLManager.createOWLOntologyManager();        
        IRI iri                     = IRI.create("file:///Users/shanki/Projects/tpgen/testowl/cmt.owl");
        OWLOntology ontology        = manager.loadOntologyFromOntologyDocument(iri);

        Analyser analyser           = new Analyser();
        
        Collection<Construct> inputForbiddenConstructs  = Construct.complement(analyser.analyse(ontology));
        Collection<Construct> outputForbiddenConstructs = new ArrayList<Construct>();
        
        Generator g                 = new Generator();        
        
        TransformationPattern p = g.generate(10,10,10, inputForbiddenConstructs, outputForbiddenConstructs);
                
        System.out.println(p);
    }
}
